package com.dhcc.bpm.modules.cost.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

import java.math.BigDecimal;

/**
 * @ClassName CostRecord.class
 * @Description  消费记录表实体类
 * @Author xiaFaYu
 * @Date 2019-12-16 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_cost_record")
@ApiModel(value = "CostRecord对象", description = "消费记录表")
public class CostRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;
	/**
	* 消费日期
	*/
		@ApiModelProperty(value = "消费日期")
		private String costDate;
	/**
	* 消费时间
	*/
		@ApiModelProperty(value = "消费时间")
		private String costTime;
	/**
	* apiID
	*/
		@ApiModelProperty(value = "apiID")
		private String apiId;
	/**
	* 应用、渠道ID
	*/
		@ApiModelProperty(value = "应用、渠道ID")
		private String appId;
	/**
	* 机构ID
	*/
		@ApiModelProperty(value = "机构ID")
		private String orgaId;
	/**
	* 交易编号
	*/
		@ApiModelProperty(value = "交易编号")
		private String traceNo;
	/**
	 *  产品ID
	*/
		@ApiModelProperty(value = "产品ID")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private Long productId;
	/**
	* 消费类型
	*/
		@ApiModelProperty(value = "消费类型")
		private String costType;
	/**
	* 消费金额
	*/
		@ApiModelProperty(value = "消费金额")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private BigDecimal costAmount;

}
